package com.changzhi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.changzhi.ldyl.model.ActivityDay;
import com.changzhi.ldyl.model.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 活动天数据表 Mapper 接口
 * </p>
 *
 * @author huangrc
 * @since 2021-07-20
 */
public interface ActivityDayMapper extends BaseMapper<ActivityDay> {

	List<UserVo> selectValue1Rankings(@Param("activityId") Integer activityId, @Param("createDate") LocalDate createDate, @Param("limit") Integer limit);

	List<UserVo> selectValue2Rankings(@Param("activityId") Integer activityId, @Param("createDate") LocalDate createDate, @Param("limit") Integer limit);

	int addAmount1(@Param("id") Integer id, @Param("value") Integer value);


	int addAmount2(@Param("id") Integer id, @Param("value") Integer value);

	Integer selectSumValue2(@Param("activityId") Integer activityId, @Param("userId")String userId,@Param("createDate") LocalDate createDate);
}
